/**
 * 由 CoCo 源代码计划解包器解包
 *
 * 模块 ID：2104
 */

"use strict"

Object.defineProperty(exports, "__esModule", {
  value: true
})
exports.bind_di_modules = undefined
var r = require("./2105/index")
var i = require("./2117/index")
var o = require("./2121")
var a = require("./2122/index")
var s = require("./2124")
var c = require("./2125")
var u = require("./2126")
var l = require("./2127/index")
var f = require("./1318")
var d = require("./2128/index")
var h = require("./2131")
var p = require("./2132")
var _ = require("./2133")
var A = require("./2134")
var g = require("./2135")
var v = require("./2136")
var m = require("./2137")
var y = require("./2138")
var b = require("./2139")
var w = require("./2140")
var E = require("../../1001/index")
var x = require("./2141")
var C = require("./2142")
var O = require("./2143/index")
var k = require("./2146")
var S = require("./2147")
var T = require("./2148")
var B = require("./2149")
var D = require("./2150/index")
var I = require("./2151")
var F = require("./2152/index")
var R = require("./2153/index")
var P = require("./2155")
var N = require("./2156")
var M = require("./2157")
var j = require("./2158")
var L = require("./2159")
var U = require("./2160")
var H = require("./963")
var V = require("./2161")
var G = require("../../301/726")
var z = require("../../121/727")
var Q = require("./2162")
var W = require("../../301/541")
var K = require("./2163")
var X = require("../../301/652")
var Y = require("./2164")
var q = require("./2165")
var $ = require("../../301/326")
var J = require("./2166")
var Z = require("../../301/374")
var ee = require("./2167")
var te = require("./2168")
var ne = require("./2169/index")
var re = require("./2172")
var ie = require("./1325")
var oe = require("./2173")
var ae = require("./2174")
var se = require("./2175/index")
var ce = require("./2176")
var ue = require("./2177")
var le = require("./2178")
var fe = require("./2179")
var de = require("../../1001/213/index")
var he = require("../642")
exports.bind_di_modules = function (e) {
  e.bind(he.BINDING.ChangeEvent).toFunction(function (e, t) {
    if (!function (e) {
      return e.block instanceof H.WorkspaceElement
    }(t) || "string" !== typeof e) {
      throw new Error("\n        Trying to create invalid change event with event " + e + " and param " + t + ".\n        It may caused by wrong custom change event subtype registry.\n        Note that options of any change event should include [block], [old_value] and [new_value].\n        Check https://codemao.yuque.com/milktea/blink/zy9tlg for more information.\n      ")
    }
    return new r.ChangeEvent(e, t)
  })
  e.bind(he.BINDING.CreateEvent).toFunction(function (e) {
    return new r.CreateEvent(e)
  })
  e.bind(he.BINDING.DeleteEvent).toFunction(function (e) {
    return new r.DeleteEvent(e)
  })
  e.bind(he.BINDING.DragAreaChangeEvent).toFunction(function (e) {
    return new r.DragAreaChangeEvent(e)
  })
  e.bind(he.BINDING.EndDragEvent).toFunction(function (e) {
    return new r.EndDragEvent(e)
  })
  e.bind(he.BINDING.MoveEvent).toFunction(function (e) {
    return new r.MoveEvent(e)
  })
  e.bind(he.BINDING.StartDragEvent).toFunction(function (e) {
    return new r.StartDragEvent(e)
  })
  e.bind(he.BINDING.ContextMenuOptionEvent).toFunction(function (e) {
    return new i.ContextMenuOptionEvent(e)
  })
  e.bind(he.BINDING.GroupEvent).toFunction(function (e) {
    return new i.GroupEvent(e)
  })
  e.bind(he.BINDING.UIEvent).toFunction(function (e) {
    return new i.UIEvent(e)
  })
  e.bind(he.BINDING.FlyoutButton).toFunction(function (e) {
    return new o.FlyoutButton(e)
  })
  e.bind(he.BINDING.VerticalFlyout).toFunction(function (e) {
    return new a.VerticalFlyout(e)
  })
  e.bind(he.BINDING.WorkspaceElementDragger).toFunction(function (e) {
    if ((0, de.is_block_svg)(e.target)) {
      return new s.BlockDragger({
        target: e.target,
        workspace: e.workspace
      })
    }
    if ((0, de.is_workspace_comment)(e.target)) {
      return new l.WorkspaceCommentDragger({
        target: e.target,
        workspace: e.workspace
      })
    }
    throw Error("Trying to drag invalid element")
  })
  e.bind(he.BINDING.WorkspaceDragger).toFunction(function (e) {
    return (0, de.is_workspace)(e) ? new f.WorkspaceDragger(e) : new c.FlyoutDragger(e)
  })
  e.bind(he.BINDING.Gesture).toFunction(function (e) {
    return new u.Gesture(e)
  })
  e.bind(he.BINDING.Blink).to(d.Blink).inSingletonScope()
  e.bind(he.BINDING.block_animations).to(h.BlockAnimations).inSingletonScope()
  e.bind(he.BINDING.context_menu).to(p.ContextMenu).inSingletonScope()
  e.bind(he.BINDING.css).to(_.Css).inSingletonScope()
  e.bind(he.BINDING.dragged_connection_manager).to(A.DraggedConnectionManager).inSingletonScope()
  e.bind(he.BINDING.insertion_marker_manager).to(g.InsertionMarkerManager).inSingletonScope()
  e.bind(he.BINDING.events).to(v.Events).inSingletonScope()
  e.bind(he.BINDING.extensions).to(m.Extensions).inSingletonScope()
  e.bind(he.BINDING.json).to(y.Json).inSingletonScope()
  e.bind(he.BINDING.registry).to(b.Registry).inSingletonScope()
  e.bind(he.BINDING.runtime_data).to(w.RuntimeData).inSingletonScope()
  e.bind(he.BINDING.theme).to(E.Theme).inSingletonScope()
  e.bind(he.BINDING.tooltip).to(x.Tooltip).inSingletonScope()
  e.bind(he.BINDING.touch_manager).to(C.TouchManager).inSingletonScope()
  e.bind(he.BINDING.utils).to(O.Utils).inSingletonScope()
  e.bind(he.BINDING.widget_div).to(k.WidgetDiv).inSingletonScope()
  e.bind(he.BINDING.workspace_db).to(S.WorkspaceDB).inSingletonScope()
  e.bind(he.BINDING.xml).to(T.Xml).inSingletonScope()
  e.bind(he.BINDING.slider_controller).to(B.SliderController).inSingletonScope()
  e.bind(he.BINDING.angle_controller).to(D.AngleController).inSingletonScope()
  e.bind(he.BINDING.color_controller).to(F.ColorController).inSingletonScope()
  e.bind(he.BINDING.Toolbox).toFunction(function (e) {
    return new R.Toolbox(e)
  })
  e.bind(he.BINDING.BlockDragSurfaceSvg).toFunction(function (e) {
    return new P.BlockDragSurfaceSvg(e)
  })
  e.bind(he.BINDING.ConnectionDB).toFunction(function () {
    return new N.ConnectionDB()
  })
  e.bind(he.BINDING.Grid).toFunction(function (e) {
    return new M.Grid(e)
  })
  e.bind(he.BINDING.WorkspaceAudio).toFunction(function (e) {
    return new j.WorkspaceAudio(e)
  })
  e.bind(he.BINDING.WorkspaceDragSurfaceSvg).toFunction(function (e, t) {
    return new L.WorkspaceDragSurfaceSvg(e, t)
  })
  e.bind(he.BINDING.WorkspaceSvg).toFunction(function (e, t, n, r) {
    return new U.WorkspaceSvg(e, t, n, r)
  })
  e.bind(he.BINDING.FieldButton).toFunction(function (e) {
    return new V.FieldButton(e)
  })
  e.bind(he.BINDING.FieldColour).toFunction(function (e) {
    return new G.FieldColour(e)
  })
  e.bind(he.BINDING.FieldDropdown).toFunction(function (e) {
    return new z.FieldDropdown(e)
  })
  e.bind(he.BINDING.FieldIcon).toFunction(function (e) {
    return new Q.FieldIcon(e)
  })
  e.bind(he.BINDING.FieldImage).toFunction(function (e) {
    return new W.FieldImage(e)
  })
  e.bind(he.BINDING.FieldLabel).toFunction(function (e) {
    return new X.FieldLabel(e)
  })
  e.bind(he.BINDING.FieldLabelSerializable).toFunction(function (e) {
    return new K.FieldLabelSerializable(e)
  })
  e.bind(he.BINDING.FieldMultilineInput).toFunction(function (e) {
    return new Y.FieldMultilineInput(e)
  })
  e.bind(he.BINDING.MutationAddButton).toFunction(function () {
    return new q.MutationAddButton()
  })
  e.bind(he.BINDING.MutationRemoveButton).toFunction(function (e) {
    return new q.MutationRemoveButton(e)
  })
  e.bind(he.BINDING.FieldNumber).toFunction(function (e) {
    return new $.FieldNumber(e)
  })
  e.bind(he.BINDING.FieldTextDropdown).toFunction(function (e) {
    return new J.FieldTextDropdown(e)
  })
  e.bind(he.BINDING.FieldTextInput).toFunction(function (e) {
    return new Z.FieldTextInput(e)
  })
  e.bind(he.BINDING.FieldDefaultValue).toFunction(function (e) {
    return new ee.FieldDefaultValue(e)
  })
  e.bind(he.BINDING.Input).toFunction(function (e) {
    return new te.Input(e)
  })
  e.bind(he.BINDING.RenderedConnection).toFunction(function (e) {
    return new oe.RenderedConnection(e)
  })
  e.bind(he.BINDING.BlockSvg).toFunction(function (e) {
    return new ((0, ne.block_render_svg)(ie.BlockSvg))(e)
  })
  e.bind(he.BINDING.BlockGroup).toFunction(function (e) {
    return new ((0, ne.block_render_svg)(re.BlockGroup))(e)
  })
  e.bind(he.BINDING.SimplifiedCommentBubble).to(I.SimplifiedCommentBubble).inSingletonScope()
  e.bind(he.BINDING.WorkspaceComment).toFunction(function (e) {
    return "simplified" === e.type ? new se.SimplifiedWorkspaceComment(e.workspace, e.parent_block, e.position, e.opt_id) : new ae.WorkspaceComment(e.workspace, e.parent_block, e.position, e.opt_id)
  })
  e.bind(he.BINDING.Options).toFunction(function (e) {
    return new ce.Options(e)
  })
  e.bind(he.BINDING.Scrollbar).toFunction(function (e, t, n, r, i) {
    return new ue.Scrollbar(e, t, n, r, i)
  })
  e.bind(he.BINDING.ScrollbarPair).toFunction(function (e, t) {
    return new ue.ScrollbarPair(e, t)
  })
  e.bind(he.BINDING.Msg).toConstantValue(fe.Msg)
  e.bind(he.BINDING.css_content).toConstantValue(le.BLINK_CSS_CONTENT)
}
